package com.itany.ems.dao;

import com.itany.ems.entity.Emp;
import com.itany.ems.exception.DataAccessException;

import java.util.List;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/3/3 13:46
 * Version:1.0-SNAPSHOT
 */
public interface EmpDao {

    public void insertEmp(Emp emp) throws DataAccessException;

    /**
     * ...
     * @return
     */
    public List<Emp> selectAll() throws DataAccessException;

    public Emp selectById(Integer id) throws DataAccessException;

    public void updateEmp(Emp emp) throws DataAccessException;

    public void deleteById(Integer id) throws DataAccessException;

}
